<template>
  <el-dialog title="提示" :close-on-click-modal='false' :close-on-press-escape='false' :visible.sync="$store.state.alertInfo.show" width="30%" :before-close="handleClose">
    <span>{{this.$store.state.alertInfo.message}}</span>
    <span slot="footer" class="dialog-footer">
      <!-- <el-button @click="$store.state.alertInfo.show = false">取 消</el-button> -->
      <el-button type="primary" @click="confirm">确 定</el-button>
    </span>
  </el-dialog>
</template>
<script>
export default {
  components: {},
  name: "",
  data() {
    return {
      
    };
  },
  methods: {
    handleClose() {
      // 关闭前数据重置
      this.$store.state.alertInfo.show=false
    },
    confirm(){
      _g.orderMethods([this.$store.state.alertInfo.OK,this.handleClose])
    },
  },
};
</script>
<style lang="scss" scoped>
.my-confirm {
}
</style>